package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.EmployeeServiceFeeSettingsMapper;
import com.ruoyi.system.domain.EmployeeServiceFeeSettings;
import com.ruoyi.system.service.IEmployeeServiceFeeSettingsService;

/**
 * 员工服务费设置 Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-09
 */
@Service
public class EmployeeServiceFeeSettingsServiceImpl implements IEmployeeServiceFeeSettingsService
{
    @Autowired
    private EmployeeServiceFeeSettingsMapper employeeServiceFeeSettingsMapper;

    /**
     * 查询员工服务费设置
     *
     * @param id 员工服务费设置主键
     * @return 员工服务费设置
     */
    @Override
    public EmployeeServiceFeeSettings selectEmployeeServiceFeeSettingsById(Long id)
    {
        return employeeServiceFeeSettingsMapper.selectEmployeeServiceFeeSettingsById(id);
    }

    /**
     * 查询员工服务费设置列表
     *
     * @param storeName 门店名称
     * @return 员工服务费设置
     */
    @Override
    public List<EmployeeServiceFeeSettings> selectEmployeeServiceFeeSettingsListByName(String storeName)
    {
        return employeeServiceFeeSettingsMapper.selectEmployeeServiceFeeSettingsListByName(storeName);
    }

    /**
     * 新增员工服务费设置
     *
     * @param employeeServiceFeeSettings 员工服务费设置
     * @return 结果
     */
    @Override
    public int insertEmployeeServiceFeeSettings(EmployeeServiceFeeSettings employeeServiceFeeSettings)
    {
        return employeeServiceFeeSettingsMapper.insertEmployeeServiceFeeSettings(employeeServiceFeeSettings);
    }

    /**
     * 修改员工服务费设置
     *
     * @param employeeServiceFeeSettings 员工服务费设置
     * @return 结果
     */
    @Override
    public int updateEmployeeServiceFeeSettings(EmployeeServiceFeeSettings employeeServiceFeeSettings)
    {
        return employeeServiceFeeSettingsMapper.updateEmployeeServiceFeeSettings(employeeServiceFeeSettings);
    }

    /**
     * 通过id批量删除员工服务费设置信息
     *
     * @param ids 需要删除的员工服务费设置主键
     * @return 结果
     */
    @Override
    public int deleteEmployeeServiceFeeSettingsByIds(Long[] ids)
    {
        return employeeServiceFeeSettingsMapper.deleteEmployeeServiceFeeSettingsByIds(ids);
    }

    /**
     * 通过id删除员工服务费设置信息
     *
     * @param id 员工服务费设置主键
     * @return 结果
     */
    @Override
    public int deleteEmployeeServiceFeeSettingsById(Long id)
    {
        return employeeServiceFeeSettingsMapper.deleteEmployeeServiceFeeSettingsById(id);
    }
}
